﻿using Colorful.Furniture.CommonDto;
using Colorful.Furniture.ErpCustomerManagement;
using Colorful.Furniture.Extensions;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Colorful.Furniture.ErpSupplierManagement;


/// <summary>
///  供应商分页输入体
/// </summary>
public class SupplierPagedInputDto : PageInputDto
{
    /// <summary>
    /// 搜索关键词
    /// </summary>
    public string Keyword { get; set; }
    
    /// <summary>
    /// 状态（0：禁用；1：启用）
    /// </summary>
    public int? Status { get; set; }
    
}


/// <summary>
///  保存信息
/// </summary>
public class SaveSupplierInputDto : CreateSupplierInputDto
{
    /// <summary>
    ///  id
    /// </summary>
    public Guid? Id { get; set; }

}


/// <summary>
///  创建供应商输入体
/// </summary>
public class CreateSupplierInputDto
{
    /// <summary>
    ///  供应商编号
    /// </summary>
    public int? Code { get; set; }

    /// <summary>
    /// 供应商名称
    /// </summary>
    [Required(ErrorMessage = "【供应商名称】不能为空")]
    public string Name { get; set; }
    
    /// <summary>
    ///  备注
    /// </summary>
    public string Remark { get; set; }

    /// <summary>
    ///  供应商类别
    /// </summary>
    [Required(ErrorMessage = "【所属类别】不能为空")]
    public Guid? Type { get; set; }

    /// <summary>
    /// 授信额度
    /// </summary>
    public decimal? CreditPrice { get; set; }

    /// <summary>
    /// 账户余额
    /// </summary>
    public decimal? Price { get; set; }

    /// <summary>
    /// 预警金额
    /// </summary>
    public decimal? WarningPrice { get; set; }

    /// <summary>
    ///  排序字段：值越大越靠前
    /// </summary>
    public long Sort { get; set; }

    /// <summary>
    ///  商户密钥
    /// </summary>
    public string Key { get; set; }

    /// <summary>
    ///  商户编号
    /// </summary>
    public string MerchantId { get; set; }
    
    /// <summary>
    ///  后台地址
    /// </summary>
    public string ManageUrl { get; set; }

    /// <summary>
    ///  提单地址
    /// </summary>
    public string SubmitOrderUrl { get; set; }

    /// <summary>
    ///  查单地址
    /// </summary>
    public string SearchOrderUrl { get; set; }

    /// <summary>
    ///  查余额地址
    /// </summary>
    public string SearchAccountUrl { get; set; }

}
